package conf

type Config struct {
	Processor *Processor
	Vendor    *Vendor
}

type Processor struct {
	Grpc *Grpc `json:"Grpc"`
}

type Grpc struct {
	Network string `json:"network"`
	Addr    string `json:"Addr"`
}

type Vendor struct {
	Grpc *Grpc  `json:"Grpc"`
	Path string `json:"Path"`
}

/*func NewConfig() (conf *Config, df func(), err error) {
	conf = &Config{
		Client: &Client{
			Grpc: &Grpc{
				Addr: "0.0.0.0:9068",
			},
		},
		Server: &Server{
			Grpc: &Grpc{
				Addr: "0.0.0.0:8068",
			},
		},
	}
	return

	c := kratosconfig.New(
		kratosconfig.WithSource(
			file.NewSource(flagconf),
		),
	)
	if err = c.Load(); err != nil {
		return
	}
	configModel := new(ConfigModel)
	c.Scan(&configModel)

	conf = &Config{
		Client: configModel.Client,
	}

	df = func() { err = c.Close() }
	return
}
*/
